package com.tao.controller;


import com.alibaba.fastjson.JSONObject;
import com.tao.service.area.IareaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController  = @Controller + @ResponseBody
@RestController
@RequestMapping("/area")
public class AreaController {
	@Autowired
	IareaService areaService;
	
	@RequestMapping(value = "/show.do",produces = "application/json;charset=utf-8")
	public String list(){
		return JSONObject.toJSONString(areaService.getArea());
	}
}
